export interface IUser {
	id: number;
	is_ban: number;
	is_admin: number;
	name: string;
	battle_id: string;
	display_id: string;
	bilibili_id: string;
	weibo_id: string;
	nga_id: string;
}

export interface ICategory {
	id: number;
	name: string;
}

export interface ISearch {
	id: number;
	user_id: number;
	code: string;
	name: string;
	description: string;
	tag: string[];
	user?: IUser;
}

export interface IWork extends ISearch {
	category_id: number;
	video: string;
	vote: number;
	hot: number;
	detail?: string;
	update_time: string;
	create_time: string;
}

export interface IHistory {
	id: number;
	work_id: number;
	code: string;
	detail: string;
	update_time: string;
}